diff options
Diffstat (limited to 'src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt index 1295b4257..1a9495ea7 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt @@ -44,28 +44,6 @@ object ThemeHelper { } } - @JvmStatic - fun setNavigationBarColor(activity: Activity, @ColorInt color: Int) { - val gestureType = InsetsHelper.getSystemGestureType(activity.applicationContext) - val orientation = activity.resources.configuration.orientation - - if ((gestureType == InsetsHelper.THREE_BUTTON_NAVIGATION || - gestureType == InsetsHelper.TWO_BUTTON_NAVIGATION) && - orientation == Configuration.ORIENTATION_LANDSCAPE - ) { - activity.window.navigationBarColor = color - } else if (gestureType == InsetsHelper.THREE_BUTTON_NAVIGATION || - gestureType == InsetsHelper.TWO_BUTTON_NAVIGATION - ) { - activity.window.navigationBarColor = getColorWithOpacity(color, SYSTEM_BAR_ALPHA) - } else { - activity.window.navigationBarColor = ContextCompat.getColor( - activity.applicationContext, - android.R.color.transparent - ) - } - } - @ColorInt fun getColorWithOpacity(@ColorInt color: Int, alphaFactor: Float): Int { return Color.argb( |